/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package managedbean.TX.TCube;

import session.TX.CustomerReservationSBRemote;
import session.TX.UsersSBRemote;
import entity.Users;
import Helper.Helper_OutletReservation;
import java.util.List;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

/**
 *
 * @author Lu Xiaodi
 */
@ManagedBean(name = "displayCustomerReservationMB")
@RequestScoped
public class DisplayCustomerReservationMB {

    @EJB
    UsersSBRemote usersBean;
    @EJB
    CustomerReservationSBRemote reservationBean;
    String outletName;
    String email;

    /** Creates a new instance of DisplayManagedBeanRep */
    public DisplayCustomerReservationMB() {
    }

    public List<Helper_OutletReservation> getReservationByCust() {
        return reservationBean.getCurrentReservationsByCustomer(email);
    }

    public List<Users> getAllUsers() {
        return usersBean.getAllUser();
    }

    public String getOutletName() {
        return outletName;
    }

    public void setOutletName(String outletName) {
        this.outletName = outletName;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

}
